package cc.flyflow.biz.process.service;

import cc.flyflow.biz.process.entity.ProcessInstanceRecord;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 流程记录 服务类
 *
 * @author Vincent
 * @since 2023-05-07
 */
public interface IProcessInstanceRecordService extends IService<ProcessInstanceRecord>
{

    /**
     * 根据流程实例id查询流程记录
     *
     * @param processInstanceId 流程实例id
     * @return 流程实例
     */
    ProcessInstanceRecord getByProcessInstanceId(String processInstanceId);

    /**
     * 查询流程实例id 根据业务编码
     */
    List<String> getByBusinessCode(String businessCode);

    /**
     * 查询流程实例id 根据流程业务编码
     */
    List<String> getByProcessBizCode(String processBizCode);

}
